package com.google.code.swingonfire.component.calendarclock;

import java.awt.BorderLayout;
import java.util.Calendar;
import java.util.Locale;

import javax.swing.JPanel;

import com.google.code.swingonfire.component.calendar.DefaultJCalendarModel;
import com.google.code.swingonfire.component.calendar.JCalendar;
import com.google.code.swingonfire.component.clock.JClock;

public class JCalendarClock extends JPanel
{

    private static final long serialVersionUID = -643576383890425986L;

    private final JCalendar calendar;
    private final JClock clock;

    public JCalendarClock()
    {
        super(new JCalendarClockLayout(8));

        calendar = new JCalendar(new DefaultJCalendarModel(Calendar.getInstance(), Locale.GERMAN));
        clock = new JClock();

        add(calendar, BorderLayout.CENTER);
        add(clock, BorderLayout.EAST);
    }
}
